#include<iostream>
#include<cstring>
const int ArSize = 10;

struct data{
    mutable char name[30];
    int access;

};




void strcount(const char* str);



int main()
{
    /*
    const data veep = {"Claybourne Clodde", 0};
    strcpy(veep.name,"JOye Joux");
    */
    using namespace std;
    char input[ArSize];
    char next;
    cout << "Enter a line:\n";
    cin.get(input, ArSize);
    while(cin)
    {
        cin.get(next);
        while(next != '\n')
            cin.get(next);
        strcount(input);
        cout << "Enter next line (empty line to quit:)\n";
        cin.get(input, ArSize);
    }

    cout << "Bye\n";
    return 0;
}

void strcount(const char* str)
{
    using namespace std;
    static int total = 0;
    int count = 0;

    cout << "\"" << str << "\" contianes ";
    while(*str++)
        count++;
    total += count;
    cout << count << " characters\n";
    cout << total << " characters\n";

}
